/* 移动端通用样式 */
* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.mobile-page {
  min-height: 100vh;
  background: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 头部导航通用样式 */
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
}

.mobile-header .header-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  margin-left: -32px;
}

/* 返回按钮通用样式 */
.back-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* 卡片样式 */
.mobile-card {
  background: white;
  border-radius: 12px;
  margin: 12px 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mobile-card-header {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-card-body {
  padding: 16px;
}

.mobile-card-footer {
  padding: 16px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

/* 按钮样式 */
.mobile-btn {
  height: 44px;
  border-radius: 22px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-btn-primary {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
}

.mobile-btn-primary:hover {
  background: linear-gradient(135deg, #f7931e, #ff6b35);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.mobile-btn-secondary {
  background: white;
  color: #666;
  border: 1px solid #d9d9d9;
}

.mobile-btn-secondary:hover {
  border-color: #ff6b35;
  color: #ff6b35;
}

/* 输入框样式 */
.mobile-input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.mobile-input:focus {
  border-color: #ff6b35;
  outline: none;
}

/* 列表样式 */
.mobile-list {
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.mobile-list-item {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.mobile-list-item:last-child {
  border-bottom: none;
}

.mobile-list-item:hover {
  background: #f8f9fa;
}

.mobile-list-item:active {
  background: #f0f0f0;
}

/* 标签样式 */
.mobile-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.mobile-tag-success {
  background: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}

.mobile-tag-warning {
  background: #fffbe6;
  color: #faad14;
  border: 1px solid #ffe58f;
}

.mobile-tag-error {
  background: #fff2f0;
  color: #ff4d4f;
  border: 1px solid #ffccc7;
}

.mobile-tag-info {
  background: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}

/* 价格样式 */
.mobile-price {
  color: #ff6b35;
  font-weight: bold;
}

.mobile-price-large {
  font-size: 20px;
}

.mobile-price-medium {
  font-size: 16px;
}

.mobile-price-small {
  font-size: 14px;
}

/* 空状态样式 */
.mobile-empty {
  text-align: center;
  padding: 40px 20px;
}

.mobile-empty-icon {
  font-size: 48px;
  color: #d9d9d9;
  margin-bottom: 16px;
}

.mobile-empty-text {
  color: #999;
  font-size: 14px;
  margin-bottom: 20px;
}

/* 加载状态 */
.mobile-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.mobile-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #ff6b35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 固定底部按钮 */
.mobile-fixed-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 16px;
  border-top: 1px solid #f0f0f0;
  z-index: 100;
}

/* 安全区域适配 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-fixed-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* 响应式字体 */
@media (max-width: 375px) {
  .mobile-card {
    margin: 8px 12px;
  }
  
  .mobile-card-header,
  .mobile-card-body,
  .mobile-card-footer {
    padding: 12px;
  }
  
  .mobile-btn {
    height: 40px;
    font-size: 14px;
  }
  
  .mobile-input {
    height: 40px;
    font-size: 14px;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .mobile-page {
    background: #141414;
    color: #ffffff;
  }
  
  .mobile-card {
    background: #262626;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.06);
  }
  
  .mobile-header {
    background: #262626;
    border-bottom-color: #303030;
  }
  
  .mobile-input {
    background: #262626;
    border-color: #303030;
    color: #ffffff;
  }
  
  .mobile-list-item:hover {
    background: #303030;
  }
} 